//
//  QRCodeCell.m
//  QRCode
//
//  Created by zhibao on 2023/1/5.
//

#import "QRCodeCell.h"

@implementation QRCodeCell
- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = [UIColor clearColor];
        _imageView = [[UIImageView alloc] init];
        _imageView.layer.cornerRadius = 10;
        _imageView.clipsToBounds = YES;
        _imageView.contentMode = UIViewContentModeScaleAspectFill;
        [self addSubview:_imageView];
        self.clipsToBounds = YES;
        _gifLable = [[UILabel alloc] init];
        _gifLable.text = @"测试";
        _gifLable.textColor = MYBlock;
        _gifLable.textAlignment = NSTextAlignmentCenter;
        _gifLable.font = MY_SCALE_RegularFONT(12);
        [self addSubview:_gifLable];
    }
    return self;
}

- (void)layoutSubviews {
    [super layoutSubviews];
    _imageView.frame = CGRectMake(0, 0, self.width, self.height - 25);
    _gifLable.frame = CGRectMake(0, _imageView.bottom + 5, self.width, 20);
}
@end
